package com.lagou.task.service;

import com.lagou.task.dao.AdminDao;
import com.lagou.task.factory.AdminDaoFactory;
import com.lagou.task.model.Admin;

public class AdminService {
    private AdminDao adminDao;
    public AdminService(){
        this.adminDao = AdminDaoFactory.getUserDao();
    }
    /**
     * 自定义成员方法实现根据参数指定的user对象来调用DAO层实现登录功能
     * @param
     * @return
     */
    public Admin userLoginService(Admin admin){
        return adminDao.userLogin(admin);
    }
}
